package com.ruoyi.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ai.mapper.AiQuestionLogMapper;
import com.ruoyi.ai.domain.AiQuestionLog;
import com.ruoyi.ai.service.IAiQuestionLogService;

/**
 * 智能回答日志Service业务层处理
 * 
 * @author zyf
 * @date 2024-09-13
 */
@Service
public class AiQuestionLogServiceImpl implements IAiQuestionLogService 
{
    @Autowired
    private AiQuestionLogMapper aiQuestionLogMapper;

    /**
     * 查询智能回答日志
     * 
     * @param id 智能回答日志主键
     * @return 智能回答日志
     */
    @Override
    public AiQuestionLog selectAiQuestionLogById(Long id)
    {
        return aiQuestionLogMapper.selectAiQuestionLogById(id);
    }

    /**
     * 查询智能回答日志列表
     * 
     * @param aiQuestionLog 智能回答日志
     * @return 智能回答日志
     */
    @Override
    public List<AiQuestionLog> selectAiQuestionLogList(AiQuestionLog aiQuestionLog)
    {
        return aiQuestionLogMapper.selectAiQuestionLogList(aiQuestionLog);
    }

    /**
     * 新增智能回答日志
     * 
     * @param aiQuestionLog 智能回答日志
     * @return 结果
     */
    @Override
    public int insertAiQuestionLog(AiQuestionLog aiQuestionLog)
    {
        return aiQuestionLogMapper.insertAiQuestionLog(aiQuestionLog);
    }

    /**
     * 修改智能回答日志
     * 
     * @param aiQuestionLog 智能回答日志
     * @return 结果
     */
    @Override
    public int updateAiQuestionLog(AiQuestionLog aiQuestionLog)
    {
        return aiQuestionLogMapper.updateAiQuestionLog(aiQuestionLog);
    }

    /**
     * 批量删除智能回答日志
     * 
     * @param ids 需要删除的智能回答日志主键
     * @return 结果
     */
    @Override
    public int deleteAiQuestionLogByIds(Long[] ids)
    {
        return aiQuestionLogMapper.deleteAiQuestionLogByIds(ids);
    }

    /**
     * 删除智能回答日志信息
     * 
     * @param id 智能回答日志主键
     * @return 结果
     */
    @Override
    public int deleteAiQuestionLogById(Long id)
    {
        return aiQuestionLogMapper.deleteAiQuestionLogById(id);
    }

    /**
     * 批量新增智能回答日志
     *
     * @param result 智能回答日志
     *
     */
    @Override
    public void insertAiQuestionLogs(List<AiQuestionLog> result) {
        aiQuestionLogMapper.insertAiQuestionLogs(result);
    }
}
